package cn.seqdata.cxf.wrapper;

public class WrapperMessage extends WrapperBean {
	private static final long serialVersionUID = 1L;

	private final boolean success;
	/** 当success=true时，msg的数据表示操作结果，否则表示错误信息 */
	private final String message;

	public WrapperMessage(String message) {
		this(true, message);
	}

	public WrapperMessage(boolean success, String message) {
		this.success = success;
		this.message = message;
	}

	@Override
	public boolean isSuccess() {
		return success;
	}

	public String getMessage() {
		return message;
	}
}
